package com.ourteam.product.model.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:00:54
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductModelCodeTemplate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String generateCodeType;

    /**
     * Attribute generateCodeType Be Seted Falg
     */
    private boolean generateCodeTypeSetted = false;

    /**
    * Attribute generateCodeType is Null Falg
    */
    private boolean generateCodeTypeNull = false;
    private String targetType;

    /**
     * Attribute targetType Be Seted Falg
     */
    private boolean targetTypeSetted = false;

    /**
    * Attribute targetType is Null Falg
    */
    private boolean targetTypeNull = false;
    private String templateName;

    /**
     * Attribute templateName Be Seted Falg
     */
    private boolean templateNameSetted = false;

    /**
    * Attribute templateName is Null Falg
    */
    private boolean templateNameNull = false;
    private String fileNameTemplate;

    /**
     * Attribute fileNameTemplate Be Seted Falg
     */
    private boolean fileNameTemplateSetted = false;

    /**
    * Attribute fileNameTemplate is Null Falg
    */
    private boolean fileNameTemplateNull = false;
    private String fileType;

    /**
     * Attribute fileType Be Seted Falg
     */
    private boolean fileTypeSetted = false;

    /**
    * Attribute fileType is Null Falg
    */
    private boolean fileTypeNull = false;
    private String fileContentTemplate;

    /**
     * Attribute fileContentTemplate Be Seted Falg
     */
    private boolean fileContentTemplateSetted = false;

    /**
    * Attribute fileContentTemplate is Null Falg
    */
    private boolean fileContentTemplateNull = false;
    private String canOverWrite;

    /**
     * Attribute canOverWrite Be Seted Falg
     */
    private boolean canOverWriteSetted = false;

    /**
    * Attribute canOverWrite is Null Falg
    */
    private boolean canOverWriteNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String inputObjectType;

    /**
     * Attribute inputObjectType Be Seted Falg
     */
    private boolean inputObjectTypeSetted = false;

    /**
    * Attribute inputObjectType is Null Falg
    */
    private boolean inputObjectTypeNull = false;
    private String fileOutputPath;

    /**
     * Attribute fileOutputPath Be Seted Falg
     */
    private boolean fileOutputPathSetted = false;

    /**
    * Attribute fileOutputPath is Null Falg
    */
    private boolean fileOutputPathNull = false;
    private long templateVersion;

    /**
     * Attribute templateVersion Be Seted Falg
     */
    private boolean templateVersionSetted = false;

    /**
    * Attribute templateVersion is Null Falg
    */
    private boolean templateVersionNull = false;
    private java.util.Date lastModifyTime;

    /**
     * Attribute lastModifyTime Be Seted Falg
     */
    private boolean lastModifyTimeSetted = false;

    /**
    * Attribute lastModifyTime is Null Falg
    */
    private boolean lastModifyTimeNull = false;
    private String lastMofiyUser;

    /**
     * Attribute lastMofiyUser Be Seted Falg
     */
    private boolean lastMofiyUserSetted = false;

    /**
    * Attribute lastMofiyUser is Null Falg
    */
    private boolean lastMofiyUserNull = false;
    private String templateCode;

    /**
     * Attribute templateCode Be Seted Falg
     */
    private boolean templateCodeSetted = false;

    /**
    * Attribute templateCode is Null Falg
    */
    private boolean templateCodeNull = false;

    public ProductModelCodeTemplate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get generateCodeType
         *
         * @return String
         */
    final public String getGenerateCodeType() {
        if (isGenerateCodeTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(generateCodeType);
        }
    }

    /**
     * Set generateCodeType
     *
     * @param String
     */
    final public void setGenerateCodeType(String generateCodeType) {
        this.generateCodeType = StringUtils.trim(generateCodeType);

        this.generateCodeTypeSetted = true;

        this.setGenerateCodeTypeNull(this.generateCodeType == null);
    }

    /**
     * Get generateCodeType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isGenerateCodeTypeSetted() {
        return this.generateCodeTypeSetted;
    }

    /**
     * Set generateCodeType Null
     *
     */
    final public void setGenerateCodeTypeNull() {
        this.generateCodeTypeNull = true;
    }

    final public void setGenerateCodeTypeNull(boolean aNullFlag) {
        this.generateCodeTypeNull = aNullFlag;
    }

    final public boolean isGenerateCodeTypeNull() {
        return this.generateCodeTypeNull;
    }

    /**
         * Get targetType
         *
         * @return String
         */
    final public String getTargetType() {
        if (isTargetTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(targetType);
        }
    }

    /**
     * Set targetType
     *
     * @param String
     */
    final public void setTargetType(String targetType) {
        this.targetType = StringUtils.trim(targetType);

        this.targetTypeSetted = true;

        this.setTargetTypeNull(this.targetType == null);
    }

    /**
     * Get targetType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTargetTypeSetted() {
        return this.targetTypeSetted;
    }

    /**
     * Set targetType Null
     *
     */
    final public void setTargetTypeNull() {
        this.targetTypeNull = true;
    }

    final public void setTargetTypeNull(boolean aNullFlag) {
        this.targetTypeNull = aNullFlag;
    }

    final public boolean isTargetTypeNull() {
        return this.targetTypeNull;
    }

    /**
         * Get templateName
         *
         * @return String
         */
    final public String getTemplateName() {
        if (isTemplateNameNull()) {
            return null;
        } else {
            return StringUtils.trim(templateName);
        }
    }

    /**
     * Set templateName
     *
     * @param String
     */
    final public void setTemplateName(String templateName) {
        this.templateName = StringUtils.trim(templateName);

        this.templateNameSetted = true;

        this.setTemplateNameNull(this.templateName == null);
    }

    /**
     * Get templateName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTemplateNameSetted() {
        return this.templateNameSetted;
    }

    /**
     * Set templateName Null
     *
     */
    final public void setTemplateNameNull() {
        this.templateNameNull = true;
    }

    final public void setTemplateNameNull(boolean aNullFlag) {
        this.templateNameNull = aNullFlag;
    }

    final public boolean isTemplateNameNull() {
        return this.templateNameNull;
    }

    /**
         * Get fileNameTemplate
         *
         * @return String
         */
    final public String getFileNameTemplate() {
        if (isFileNameTemplateNull()) {
            return null;
        } else {
            return StringUtils.trim(fileNameTemplate);
        }
    }

    /**
     * Set fileNameTemplate
     *
     * @param String
     */
    final public void setFileNameTemplate(String fileNameTemplate) {
        this.fileNameTemplate = StringUtils.trim(fileNameTemplate);

        this.fileNameTemplateSetted = true;

        this.setFileNameTemplateNull(this.fileNameTemplate == null);
    }

    /**
     * Get fileNameTemplate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isFileNameTemplateSetted() {
        return this.fileNameTemplateSetted;
    }

    /**
     * Set fileNameTemplate Null
     *
     */
    final public void setFileNameTemplateNull() {
        this.fileNameTemplateNull = true;
    }

    final public void setFileNameTemplateNull(boolean aNullFlag) {
        this.fileNameTemplateNull = aNullFlag;
    }

    final public boolean isFileNameTemplateNull() {
        return this.fileNameTemplateNull;
    }

    /**
         * Get fileType
         *
         * @return String
         */
    final public String getFileType() {
        if (isFileTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(fileType);
        }
    }

    /**
     * Set fileType
     *
     * @param String
     */
    final public void setFileType(String fileType) {
        this.fileType = StringUtils.trim(fileType);

        this.fileTypeSetted = true;

        this.setFileTypeNull(this.fileType == null);
    }

    /**
     * Get fileType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isFileTypeSetted() {
        return this.fileTypeSetted;
    }

    /**
     * Set fileType Null
     *
     */
    final public void setFileTypeNull() {
        this.fileTypeNull = true;
    }

    final public void setFileTypeNull(boolean aNullFlag) {
        this.fileTypeNull = aNullFlag;
    }

    final public boolean isFileTypeNull() {
        return this.fileTypeNull;
    }

    /**
         * Get fileContentTemplate
         *
         * @return String
         */
    final public String getFileContentTemplate() {
        if (isFileContentTemplateNull()) {
            return null;
        } else {
            return StringUtils.trim(fileContentTemplate);
        }
    }

    /**
     * Set fileContentTemplate
     *
     * @param String
     */
    final public void setFileContentTemplate(String fileContentTemplate) {
        this.fileContentTemplate = StringUtils.trim(fileContentTemplate);

        this.fileContentTemplateSetted = true;

        this.setFileContentTemplateNull(this.fileContentTemplate == null);
    }

    /**
     * Get fileContentTemplate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isFileContentTemplateSetted() {
        return this.fileContentTemplateSetted;
    }

    /**
     * Set fileContentTemplate Null
     *
     */
    final public void setFileContentTemplateNull() {
        this.fileContentTemplateNull = true;
    }

    final public void setFileContentTemplateNull(boolean aNullFlag) {
        this.fileContentTemplateNull = aNullFlag;
    }

    final public boolean isFileContentTemplateNull() {
        return this.fileContentTemplateNull;
    }

    /**
         * Get canOverWrite
         *
         * @return String
         */
    final public String getCanOverWrite() {
        if (isCanOverWriteNull()) {
            return null;
        } else {
            return StringUtils.trim(canOverWrite);
        }
    }

    /**
     * Set canOverWrite
     *
     * @param String
     */
    final public void setCanOverWrite(String canOverWrite) {
        this.canOverWrite = StringUtils.trim(canOverWrite);

        this.canOverWriteSetted = true;

        this.setCanOverWriteNull(this.canOverWrite == null);
    }

    /**
     * Get canOverWrite Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCanOverWriteSetted() {
        return this.canOverWriteSetted;
    }

    /**
     * Set canOverWrite Null
     *
     */
    final public void setCanOverWriteNull() {
        this.canOverWriteNull = true;
    }

    final public void setCanOverWriteNull(boolean aNullFlag) {
        this.canOverWriteNull = aNullFlag;
    }

    final public boolean isCanOverWriteNull() {
        return this.canOverWriteNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get inputObjectType
         *
         * @return String
         */
    final public String getInputObjectType() {
        if (isInputObjectTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(inputObjectType);
        }
    }

    /**
     * Set inputObjectType
     *
     * @param String
     */
    final public void setInputObjectType(String inputObjectType) {
        this.inputObjectType = StringUtils.trim(inputObjectType);

        this.inputObjectTypeSetted = true;

        this.setInputObjectTypeNull(this.inputObjectType == null);
    }

    /**
     * Get inputObjectType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isInputObjectTypeSetted() {
        return this.inputObjectTypeSetted;
    }

    /**
     * Set inputObjectType Null
     *
     */
    final public void setInputObjectTypeNull() {
        this.inputObjectTypeNull = true;
    }

    final public void setInputObjectTypeNull(boolean aNullFlag) {
        this.inputObjectTypeNull = aNullFlag;
    }

    final public boolean isInputObjectTypeNull() {
        return this.inputObjectTypeNull;
    }

    /**
         * Get fileOutputPath
         *
         * @return String
         */
    final public String getFileOutputPath() {
        if (isFileOutputPathNull()) {
            return null;
        } else {
            return StringUtils.trim(fileOutputPath);
        }
    }

    /**
     * Set fileOutputPath
     *
     * @param String
     */
    final public void setFileOutputPath(String fileOutputPath) {
        this.fileOutputPath = StringUtils.trim(fileOutputPath);

        this.fileOutputPathSetted = true;

        this.setFileOutputPathNull(this.fileOutputPath == null);
    }

    /**
     * Get fileOutputPath Has Been Setted
     *
     * @return boolean
     */
    final public boolean isFileOutputPathSetted() {
        return this.fileOutputPathSetted;
    }

    /**
     * Set fileOutputPath Null
     *
     */
    final public void setFileOutputPathNull() {
        this.fileOutputPathNull = true;
    }

    final public void setFileOutputPathNull(boolean aNullFlag) {
        this.fileOutputPathNull = aNullFlag;
    }

    final public boolean isFileOutputPathNull() {
        return this.fileOutputPathNull;
    }

    /**
         * Get templateVersion
         *
         * @return long
         */
    final public long getTemplateVersion() {
        return templateVersion;
    }

    /**
     * Set templateVersion
     *
     * @param long
     */
    final public void setTemplateVersion(long templateVersion) {
        this.templateVersion = templateVersion;

        this.templateVersionSetted = true;

        this.setTemplateVersionNull(false);
    }

    /**
     * Get templateVersion Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTemplateVersionSetted() {
        return this.templateVersionSetted;
    }

    /**
     * Set templateVersion Null
     *
     */
    final public void setTemplateVersionNull() {
        this.templateVersionNull = true;
    }

    final public void setTemplateVersionNull(boolean aNullFlag) {
        this.templateVersionNull = aNullFlag;
    }

    final public boolean isTemplateVersionNull() {
        return this.templateVersionNull;
    }

    /**
         * Get lastModifyTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getLastModifyTime() {
        return lastModifyTime;
    }

    /**
     * Set lastModifyTime
     *
     * @param java.util.Date
     */
    final public void setLastModifyTime(java.util.Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;

        this.lastModifyTimeSetted = true;

        this.setLastModifyTimeNull(this.lastModifyTime == null);
    }

    /**
     * Get lastModifyTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastModifyTimeSetted() {
        return this.lastModifyTimeSetted;
    }

    /**
     * Set lastModifyTime Null
     *
     */
    final public void setLastModifyTimeNull() {
        this.lastModifyTimeNull = true;
    }

    final public void setLastModifyTimeNull(boolean aNullFlag) {
        this.lastModifyTimeNull = aNullFlag;
    }

    final public boolean isLastModifyTimeNull() {
        return this.lastModifyTimeNull;
    }

    /**
         * Get lastMofiyUser
         *
         * @return String
         */
    final public String getLastMofiyUser() {
        if (isLastMofiyUserNull()) {
            return null;
        } else {
            return StringUtils.trim(lastMofiyUser);
        }
    }

    /**
     * Set lastMofiyUser
     *
     * @param String
     */
    final public void setLastMofiyUser(String lastMofiyUser) {
        this.lastMofiyUser = StringUtils.trim(lastMofiyUser);

        this.lastMofiyUserSetted = true;

        this.setLastMofiyUserNull(this.lastMofiyUser == null);
    }

    /**
     * Get lastMofiyUser Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastMofiyUserSetted() {
        return this.lastMofiyUserSetted;
    }

    /**
     * Set lastMofiyUser Null
     *
     */
    final public void setLastMofiyUserNull() {
        this.lastMofiyUserNull = true;
    }

    final public void setLastMofiyUserNull(boolean aNullFlag) {
        this.lastMofiyUserNull = aNullFlag;
    }

    final public boolean isLastMofiyUserNull() {
        return this.lastMofiyUserNull;
    }

    /**
         * Get templateCode
         *
         * @return String
         */
    final public String getTemplateCode() {
        if (isTemplateCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(templateCode);
        }
    }

    /**
     * Set templateCode
     *
     * @param String
     */
    final public void setTemplateCode(String templateCode) {
        this.templateCode = StringUtils.trim(templateCode);

        this.templateCodeSetted = true;

        this.setTemplateCodeNull(this.templateCode == null);
    }

    /**
     * Get templateCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTemplateCodeSetted() {
        return this.templateCodeSetted;
    }

    /**
     * Set templateCode Null
     *
     */
    final public void setTemplateCodeNull() {
        this.templateCodeNull = true;
    }

    final public void setTemplateCodeNull(boolean aNullFlag) {
        this.templateCodeNull = aNullFlag;
    }

    final public boolean isTemplateCodeNull() {
        return this.templateCodeNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductModelCodeTemplate) == false) {
            return false;
        }

        ProductModelCodeTemplate other = (ProductModelCodeTemplate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("generateCodeType=");
        buffer.append(this.generateCodeType);

        buffer.append("targetType=");
        buffer.append(this.targetType);

        buffer.append("templateName=");
        buffer.append(this.templateName);

        buffer.append("fileNameTemplate=");
        buffer.append(this.fileNameTemplate);

        buffer.append("fileType=");
        buffer.append(this.fileType);

        buffer.append("fileContentTemplate=");
        buffer.append(this.fileContentTemplate);

        buffer.append("canOverWrite=");
        buffer.append(this.canOverWrite);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("inputObjectType=");
        buffer.append(this.inputObjectType);

        buffer.append("fileOutputPath=");
        buffer.append(this.fileOutputPath);

        buffer.append("templateVersion=");
        buffer.append(this.templateVersion);

        buffer.append("lastModifyTime=");
        buffer.append(this.lastModifyTime);

        buffer.append("lastMofiyUser=");
        buffer.append(this.lastMofiyUser);

        buffer.append("templateCode=");
        buffer.append(this.templateCode);

        buffer.append("]");

        return buffer.toString();
    }
}
